package hy;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import out.Car;

import java.util.ArrayList;
import java.util.List;
@ConditionalOnBean(name="person")
@Configuration
@Import({Car.class,SelectorImport.class})
public class MyCfg {
    {
        System.out.println("this is myCfg.....");
    }

    @Bean
    public List getlist(){
        return new ArrayList();
    }
}
